// 框架内路由
export default [
  {
    path: '/',
    name: 'layout',
    component: () => import('@/components/Layout.vue'),
    redirect: '/user/userList',
    children: [
      {
        path: 'user', // 用户管理
        name: 'user',
        idname:'用户管理',
        component: () => import('@/views/UserManagement.vue'),
        children: [
          {
            path: 'userList', // 列表
            name: 'userList',
            idname:'用户列表',
            component: () => import('@/userPage/userList.vue'),
          },
          {
            path: 'userChart', // 用户管理
            name: 'userChart',
            idname:'用户统计',
            component: () => import('@/userPage/userChart.vue'),
          },
        ],
      },
      {
        path: 'film', // 电影管理
        name: 'film',
        idname:'电影管理',
        component: () => import('@/views/FilmManagement.vue'),
      },
      {
        path: 'cinema', // 影院管理
        name: 'cinema',
        idname:'影院管理',
        component: () => import('@/views/CinemaManagement.vue'),
      },
      {
        path: 'auditorium', // 影厅管理
        name: 'auditorium',
        idname:'影厅管理',
        component: () => import('@/views/AuditoriumManagement.vue'),
      },
      {
        path: 'movie', // 电影拍片
        name: 'movie',
        idname:'电影拍片',
        component: () => import('@/views/MovieArrangement.vue'),
      },
      {
        path: 'comment', // 评论管理
        name: 'comment',
        idname:'评论管理',
        component: () => import('@/views/CommentManagement.vue'),
      },
      {
        path: 'order', // 订单管理
        name: 'order',
        idname:'订单管理',
        component: () => import('@/views/OrderManagement.vue'),
      },
      {
        path: 'limits', // 权限管理
        name: 'limits',
        idname:'权限管理',
        component: () => import('@/views/Limits.vue'),
      },
      {
        path: 'carousel', // 轮播图管理
        name: 'carousel',
        idname:'轮播图管理',
        component: () => import('@/views/Carousel.vue'),
      },
    ],
  },
];
